/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.sys.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 商家用户信息Entity
 * @author 开发
 * @version 2016-06-19
 */
public class UserBusiness extends DataEntity<UserBusiness> {
	
	private static final long serialVersionUID = 1L;
//    private String id ;
	private String introduce="";		// 商家介绍
	private String images="";		// 商家图集
    private String name;
	private String price;		// 价格
    private String businessType;  //商城类型
    private User user;
	
	public UserBusiness() {
		super();
	}

    public UserBusiness(String id){
        this();
        this.id = id;
    }

//	public UserBusiness(String id){
//		super(id);
//	}
//    public String getId(){ return id; }
//
//    public void setId(String id){ this.id = id; }

	@Length(min=0, max=9999, message="商家介绍长度必须介于 0 和 9999 之间")
	public String getIntroduce() {
		return introduce;
	}

	public void setIntroduce(String introduce) {
		this.introduce = introduce;
	}
	
	@Length(min=0, max=9999, message="商家图集长度必须介于 0 和 9999 之间")
	public String getImages() {
		return images;
	}

	public void setImages(String images) {
		this.images = images;
	}

    public String getName(){ return name; }

    public void setName(String name){ this.name = name; }
	
	@Length(min=0, max=255, message="价格长度必须介于 0 和 255 之间")
	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

    public String getBusinessType(){ return businessType; }

    public void setBusinessType(String businessType){ this.businessType = businessType; }

    public User getUser(){ return user; }

    public void setUser(User user){ this.user = user; }
	
}